package org.emavaj.sanguosha.model.card.resource;

import java.io.Serializable;

/**
 * 
 * @author eMavaj
 *
 */
public class CardResInfo implements Serializable {
	
	private static final long serialVersionUID = 230312194791229289L;
	
	private String name;
	private String filename;
	private String description;
	
	public CardResInfo(String name, String filename, String description) {
		super();
		this.name = name;
		this.filename = filename;
		this.description = description;
	}
	
	public CardResInfo() {}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return name + ":" + filename.replace(":", "|") + ":"
				+ description.replace(":", "|");
	}
}
